// by Xeno

private ["_m_name","_aa_pod"];

_aa_pod = player getVariable "aa_pod";
if (isNil "_aa_pod") exitWith {};
if (vehicle player == _aa_pod) exitWith {localize "MSG_DOM_AAGETOUT" call XfGlobalChat};

player playMove "AinvPknlMstpSlayWrflDnon_medic";
sleep 3;
waitUntil {animationState player != "AinvPknlMstpSlayWrflDnon_medic"};
if (!alive player) exitWith {localize "MSG_DOM_DIEDBEFOREACTION" call XfGlobalChat};

deleteVehicle _aa_pod;
player SetVariable  ["aa_pod", objNull];

localize "MSG_DOM_AAREMOVED" call XfGlobalChat;
player SetVariable  ["d_aapod_pos", []];
_m_name = format [localize "MSG_DOM_AAMRK", str(player)];
["d_p_o_r", [str(player),_m_name]] call XNetCallEvent;